package com.mxb.sqlsession;

import com.mxb.model.MappedStatement;

import java.util.List;

/**
 * 类描述
 *
 * @Author: MaXiaobing
 * @Date: 2021/3/9 17:52
 */
public interface SqlSession {

    int update(MappedStatement mappedStatement, Object... params) throws Exception;
    <T> List<T> selectList(String statementId, Object... params) throws Exception;
    <T> T selectOne(String statementId, Object... params) throws Exception;
    <T> T getMapper(Class<?> mapperClass);
}
